package com.urms.controller.navBar;

import com.urms.entity.NavBar;
import com.urms.service.NavBarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class NavBarController {
    @Autowired
    private NavBarService navBarService;

    /**
     * 查询所有导航信息
     * @return
     */
    @GetMapping("/findAllNavBar")
    public List<NavBar> findAllNavBar(){
//        System.out.println(navBarService.findAll());
        return navBarService.findAll();
    }
}
